package com.hy.medicine.evaluation.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SensitiveWordDTO {
    @NotBlank(message = "敏感词不能为空")
    private String word;

    @NotNull(message = "级别不能为空")
    @Min(value = 1, message = "级别最小为1")
    @Max(value = 3, message = "级别最大为3")
    private Integer level;
}
